package com.example.bobo.yuejian322.Interfa;

import com.example.bobo.yuejian322.bean.Club;
import com.example.bobo.yuejian322.bean.Contest;
import com.example.bobo.yuejian322.bean.DetialClub;
import com.example.bobo.yuejian322.bean.LoveList;
import com.example.bobo.yuejian322.bean.Nearclub;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by BOBO on 2017/10/12.
 */

public interface ClubSeverice {

    @GET("lists/mod/club")
    Call<List<Club>> clubList(@Query("SessionID") String SessionID,
                              @Query("page") int page,
                              @Query("mod") String mod

    );


    @GET("nearclub")
    Call<List<Nearclub>> nearclubList(@Query("SessionID") String SessionID,
                                      @Query("longitude") double longitude,
                                      @Query("latitude") double latitude,
                                      @Query("city_id") int city_id


    );

    @GET("get/mod/club")
    Call<DetialClub> detialclub(@Query("id") String id


    );

    @GET("focus")
    Call<String> love(@Query("SessionID") String SessionID,
                      @Query("userid")int userid,
                      @Query("fan_id") String fan_id,
                      @Query("fans_type") int fans_type


    );


    @GET("lists/mod/fans")
    Call<List<LoveList>> lovelist(@Query("SessionID") String SessionID,
                                  @Query("userid") int userid

    );
}
